/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */

/**
 * @version status.h 0.0.1
 * @package Comoro
 * @author Dr.NP <np@bsgroup.org>
 *
 * Process bspd server status header
 */

#include <event.h>
#include <evhttp.h>

// Constants
#define DEFAULT_STATUS_SRV_PORT					65002
#define TPL_FILENAME_LENGTH						1024
#define TPL_CONTENT_LENGTH						1048576
#define STATUS_PACKAGE_LENGTH					128

/* BEGIN OF FUNCTION DEFINE */
int status_init									();
void status_binary_content						(struct evhttp_request *, const char *, struct evbuffer *);
void status_file_content							(const char *);
void status_page_gen								(struct evbuffer *);
void status_request								(struct evhttp_request *, void *);
void status_get_base_info_cb					(void *);
void status_str_replace							(const char *, char *, char *, char *);
const char * status_mime_type					(const char *);
/* END OF FUNCTION DEFINE */
